package cn.cosmosx.controller.calc.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 贷款数据计算参数
 */
@ApiModel(description = "贷款试算结果")
@Getter
@Setter
public class LoanVO implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty("期数")
    private Integer period;
    
    @ApiModelProperty("还款日")
    private LocalDate repaymentDate;
    
    @ApiModelProperty("月还款金额")
    private BigDecimal amount;
    
    @ApiModelProperty("月还款本金")
    private BigDecimal capital;
    
    @ApiModelProperty("月还款利息")
    private BigDecimal interest;
    
    @ApiModelProperty("剩余应还本金")
    private BigDecimal capitalBalance;
}
